Feature/governance and team features#39
Merged
JerryIdoko merged 2 commits intoGrant-Stream:mainfrom Feb 22, 2026
Merged
Conversation
- Clean up all .o, .d, .rlib, .dylib files - This will significantly reduce repository size - .gitignore files will prevent future heavy pushes
Task 1: DAO Governance for Milestone Approvals - Add propose_milestone_approval() function for admins to initiate voting - Add vote_milestone() function restricted to council members - Automatic token transfer when voting threshold is reached - Track votes with voting deadlines and prevent double voting Task 2: Cliff Period for Grant Streams - Add cliff_end timestamp to Grant struct - Update withdraw() to return 0 if current_time < cliff_end - Include cliff time in accrued calculations once passed Task 3: Team-Based Grant Distribution - Replace single grantee with grantees: Map<Address, u32> (basis points) - Update withdraw() to accept caller address and calculate specific shares - Assert total shares equal 10,000 basis points (100%) during creation - Track individual withdrawals per team member Additional Features: - Enhanced error handling for governance operations - Support for multi-sig threshold voting (e.g., 3-of-5) - Per-team member withdrawal tracking - Comprehensive access control for council members
edehvictor
added a commit
to edehvictor/contracts
that referenced
this pull request
Feb 25, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #27
closes #28
closes #29